package controller;

import core.*;
import java.io.PrintStream;

/**
 * Singleton node representing java.lang.System, providing streams
 * for standard input and output
 *
 * @author Wijnand
 */
public class StdOut extends StdNode {

    private static PrintStream ps;
    private static StdOut instance = new StdOut();

    public static StdOut getInstance() {
        return instance;
    }

    public StdOut(){
        ps = java.lang.System.out;
    }

     public void setPS(PrintStream ps){
        StdOut.ps=ps;
    }

     public PrintStream getPS(){
         return ps;
     }
}

